package com.slipper.system.flow.dao;

import java.util.List;

import com.slipper.system.flow.bo.FlowNodeBO;
import org.apache.ibatis.annotations.Param;

public interface FlowNodeDao {
    
    int insert(FlowNodeBO bo);
    
    int update(FlowNodeBO bo);
    
    int delete(FlowNodeBO bo);

    FlowNodeBO queryBy(String id);

    List<FlowNodeBO> queryFirst(String flowId);

    List<FlowNodeBO> queryList(FlowNodeBO bo);

    List<FlowNodeBO> queryByFlowId(String flowId);

    int deleteById(String id);

    void deleteByFlowId(String flowId);

    int updateDealMan(FlowNodeBO bo);

    List<FlowNodeBO> queryNode(
            @Param("flowId") String flowId,
            @Param("type") String type);
}
